package com.itheima.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class IntercepterController {
    @RequestMapping(value = "/target")
    public ModelAndView test01(ModelAndView modelAndView){
        modelAndView.addObject("name","itcast");
        modelAndView.setViewName("itc");
        return modelAndView;
    }
}
